package com.pactera.miyuangroup.vo.convertor;

import com.pactera.miyuangroup.db.entity.OrganizationStructure;
import com.pactera.miyuangroup.vo.response.web.OrganizationRes;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 组织结构转换
 *
 * @author Wangwu
 * @create 2018-04-20 上午10:45
 **/
@Mapper(componentModel = "spring")
public interface OrganizationConvert {


    /**
     * 数据库转页面对象
     * @param org
     * @return
     */
    OrganizationRes convert2Organization(OrganizationStructure org);

    /**
     * 批量数据库转页面对象
     *
     * @param orgList
     * @return
     */
    List<OrganizationRes> convert2OrganizationList(List<OrganizationStructure> orgList);
}
